package com.qf.controller;

import com.qf.pojo.UserDesc;
import com.qf.service.UserDescService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/UserDesc")
public class UserDescController {

    @Autowired
    public UserDescService userDescService;

    /**
     * 查询desc所有信息
     */
    @GetMapping("/findAll")
    public List<UserDesc> findAll(){
        return userDescService.findAll();
    }
}
